#ifndef __Widget_H
#define __Widget_H	 

//#include "WinDesktop.h" 
#include "WidBit.h" 
#include "WidBits.h" 
#include "WidBmp.h" 
#include "WidBtn.h" 
#include "WidFill.h" 
#include "WidNum.h" 
#include "WidText.h" 
#include "WidWave.h" 
#include "WinBase.h" 

class Widget
{
// Construction
public:
	Widget(Rect rc);
		
// Properties
public:
	Rect m_rc;
	u8  m_bInvalided;		// 重画
	u8	m_bAutoFresh;		// 自动刷新

// Methods
public:
	virtual void loop() = 0;
	virtual void refresh(){};

// Overwrite
public:

};

extern Dma2d* pDma2d;

#endif
